<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./index.css">
</head>
<body>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide" style="background: red">1</div>
            <div class="swiper-slide" style="background:yellow">2</div>
            <div class="swiper-slide" style="background:blue">3</div>
        </div>
        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>
        <ul class="swiper-pagination"></ul>
    </div>
    <script src="./index.js"></script>
    <script>
        new Swiper('.swiper-container',{
            pagination:{
                el:'.swiper-pagination'
            },
            navigation:{
                prevEle:'.swiper-button-prev',
                nextEle:'.swiper-button-next'
            },
            autoplay:2000,
            direction:'horizontal'
        })
    </script>
</body>
</html>